import request from '@/utils/request'

// 考核部门分页查询
export function libFindPage(data) {
  return request({
    url: '/checkDept/find_page',
    method: 'post',
    data
  })
}

// 考核部门新增
export function libDepartAdd(data) {
  return request({
    url: '/checkDept/add',
    method: 'post',
    data
  })
}

// 考核部门修改
export function fetchDepartUpdate(data) {
  return request({
    url: '/checkDept/update',
    method: 'post',
    data
  })
}

// 考核部门删除
export function fetchDepartDelete(data) {
  return request({
    url: '/checkDept/delete',
    method: 'post',
    data
  })
}
// 考核部门获取详情
export function fetchDepartGet(data) {
  return request({
    url: '/checkDept/get',
    method: 'post',
    data
  })
}
// 获取部门下拉
export function fetchDepartDropdownList(data) {
  return request({
    url: '/dept/getDeptList',
    method: 'post',
    data
  })
}

// 考核主题下拉
export function fetchCheckTopicDropdownList(data) {
  return request({
    url: '/common/dropdown/selectCheckDeptList',
    method: 'post',
    data
  })
}
// 指标服务器下拉
export function fetchDataSystemDropdownList(data) {
  return request({
    url: '/common/dropdown/selectKpiServerList',
    method: 'post',
    data
  })
}
// 根据分组名称获取数据字典下拉(数据系统)
export function fetchDictionaryList(data) {
  return request({
    url: '/common/dropdown/getDictionaryList',
    method: 'post',
    data
  })
}
// 考核部门状态更改
export function fetchCheckDeptUpdateStatus(data) {
  return request({
    url: '/checkDept/updateCheckDeptStatus',
    method: 'post',
    data
  })
}
